package com.CmJava;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;


@EnableDiscoveryClient// 让nacos发现
@SpringBootApplication
@MapperScan("com.CmJava.mapper")
//开启spring security的注解功能
// securedEnabled:开启控制方法调用的权限   prePostEnabled：开启方法调用前后验证权限
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true)
public class WebApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class);
    }
}
